home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Sessions / Completions / Completions Source / Files / ParamBlockTask.h < prev   
Encoding:
Text File  |  1998-06-17  |  514 b   |  33 lines  |  [TEXT/CWIE]

  1. // ParamBlockTask.h
  2.  
  3. #ifndef ParamBlockTask_h
  4. #define ParamBlockTask_h
  5.  
  6. #ifndef A5_h
  7. #include "A5.h"
  8. #endif
  9. #ifndef Task_h
  10. #include "Task.h"
  11. #endif
  12. #ifndef __FILES__
  13. #include <Files.h>
  14. #endif
  15.  
  16. class ParamBlockTask: public Task,
  17.                              public ParamBlockRec
  18.   {
  19.     private:
  20.         A5 a5;
  21.         
  22.         static void Complete( ParamBlockRec *block );
  23.         static void CompleteGlue();
  24.         
  25.     public:
  26.         ParamBlockTask();
  27.         ~ParamBlockTask()            { Assert( !Running() ); }
  28.         
  29.         bool Running() const        { return ioParam.ioResult > 0; }
  30.   };
  31.  
  32. #endif
  33.